using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevUserpositiondataTList, table list:dev_userpositiondata_t 
	/// </summary>
	internal class DevUserpositiondataTList : BaseWritableEntities<DevUserpositiondataT>, IDevUserpositiondataTList
	{
		private DevUserpositiondataTQueryDAO _queryDAO;
		private DevUserpositiondataTWritingDAO _writeDAO;

		public DevUserpositiondataTList(DevUserpositiondataTQueryDAO queryDao, DevUserpositiondataTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevUserpositiondataT> GetDevUserpositiondataTAllItems()
		{
			return _queryDAO.GetDevUserpositiondataTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevUserpositiondataT> GetDevUserpositiondataTItemsById(int id)
		{
			return _queryDAO.GetDevUserpositiondataTItemsById(id);
		}

		/// <summary>
		/// 根据userId，获取所有DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevUserpositiondataT> GetDevUserpositiondataTItemsByUserId(int userId)
		{
			return _queryDAO.GetDevUserpositiondataTItemsByUserId(userId);
		}

		/// <summary>
		/// 根据jobId，获取所有DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevUserpositiondataT> GetDevUserpositiondataTItemsByJobId(int jobId)
		{
			return _queryDAO.GetDevUserpositiondataTItemsByJobId(jobId);
		}

		/// <summary>
		/// 根据cellId，获取所有DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevUserpositiondataT> GetDevUserpositiondataTItemsByCellId(int cellId)
		{
			return _queryDAO.GetDevUserpositiondataTItemsByCellId(cellId);
		}

		/// <summary>
		/// 增加一行DevUserpositiondataT,table item:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevUserpositiondataT(DevUserpositiondataT item)
		{
			return this._writeDAO.AddDevUserpositiondataT(item);
		}

		/// <summary>
		/// 增加多行DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevUserpositiondataTs(DevUserpositiondataT[] items)
		{
			return this._writeDAO.AddDevUserpositiondataTs(items);
		}

		/// <summary>
		/// 更新一行DevUserpositiondataT,table item:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevUserpositiondataT(DevUserpositiondataT item)
		{
			return this._writeDAO.UpdateDevUserpositiondataT(item);
		}

		/// <summary>
		///  更新多行DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevUserpositiondataTs(DevUserpositiondataT[] items)
		{
			return this._writeDAO.UpdateDevUserpositiondataTs(items);
		}

		/// <summary>
		/// 删除一行DevUserpositiondataT,table item:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevUserpositiondataT(DevUserpositiondataT item)
		{
			return this._writeDAO.DeleteDevUserpositiondataT(item);
		}

		/// <summary>
		///  删除多行DevUserpositiondataT,table items:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevUserpositiondataTs(DevUserpositiondataT[] items)
		{
			return this._writeDAO.DeleteDevUserpositiondataTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevUserpositiondataT,table entity:dev_userpositiondata_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevUserpositiondataTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevUserpositiondataTByIds(ids);
		}

	}
}
